import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {DicComponent} from './dic/dic.component';
import {FarmComponent} from './farm/farm.component';
import {BasicComponent} from './basic.component';
import {TurbstatusComponent} from './turbstatus/turbstatus.component';
import {PhaseComponent} from './phase/phase.component';

import {TagComponent} from './tag/tag.component';
import {CircuitComponent} from './circuit/circuit.component';

import {ModelComponent} from './model/model.component';
import {FaultLevelConfigComponent} from './fault-level-config/fault-level-config.component';
import {TurboperCategoryComponent} from './turboper-category/turboper-category.component';

import {FactoryComponent} from './factory/factory.component';
import {CompanyComponent} from './company/company.component';
import {ModelParamComponent} from './model-param/model-param.component';
import {ModuleComponent} from './module/module.component';

const routes: Routes = [
  {
    path: '',
    component: BasicComponent,
    children: [
      {path: 'dic', component: DicComponent},
      {path: 'farm', component: FarmComponent},
      {path: 'turbstatus', component: TurbstatusComponent},
      {path: 'turbine', component: null},
      {path: 'tag', component: TagComponent},
      {path: 'phase', component: PhaseComponent},
      {path: 'circuit', component: CircuitComponent},
      // { path: 'stausexper', component:StausExperComponent },
      {path: 'user', component: CompanyComponent},
      {path: 'model', component: ModelComponent},
      {path: 'levelconfig', component: FaultLevelConfigComponent},
      {path: 'factory', component: FactoryComponent},
      {path: 'turboperCategory', component: TurboperCategoryComponent},
      {path: 'modelparam', component: ModelParamComponent},
      {path: 'module', component: ModuleComponent},
      // { path: 'halt', component:ModelParamComponent },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class BasicRoutingModule {
}


// WEBPACK FOOTER //
// ./src/app/module/basic/basic-routing.module.ts
